package cn.zz.veggie.core.enums.exception;

import cn.zz.comm.exception.BizErrorCode;

/**
 * @author zhongq
 * @since 2024/3/20
 */
public enum Biz403Error implements BizErrorCode {
	ORDER_NOT_FOUND("order not found {}"),
	ORDER_USER_NO_MATCH("order user not match {}"),
	ORDER_ITEM_NOT_FOUND("order item not found {}"),;

	Biz403Error(String msgPattern) {
		this.msgPattern = msgPattern;
	}

	private final String msgPattern;

	@Override
	public String code() {
		return name();
	}

	@Override
	public String pattern() {
		return msgPattern;
	}
}